package com.yaoxuguang.concurrence.mic;

/**
 * @author yaoxuguang
 * @Title: yao-interview
 * @Package com.yaoxuguang.concurrence
 * @Description: 继承Thread实现多线程示例
 * @date 2018年12月14日11:17
 */
public class MyThread extends Thread {
    @Override
    public void run() {
        System.out.printf("My Thread: %s %n",currentThread().getName());
    }

    public static void main(String[] args) {
        System.out.printf("Main Thread: %s %n",currentThread().getName());
        MyThread myThread = new MyThread();
        myThread.start();
    }
}
